#include "qstringeditor.h"

#include "qstringeditdialog.h"

#include "../../shared/property/qabstractproperty.h"
#include "../../shared/qpropertyfactory.h"

QStringEditor::QStringEditor(QAbstractProperty *property,QUndoStack* stack, QWidget *parent):
    QButtonCommonEditor(property,stack,parent),
    m_undo_stack(stack)
{
}

void QStringEditor::btn_clicked()
{
    QStringEditDialog dlg(m_property,m_undo_stack,this);
    dlg.exec();
}

qRegisterPropertyEditor(String,QStringEditor)
